package jdbc;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collections;

public class Demo12 {
    public static void main(String[] args){
        try(Connection connection = DBUtil.getConnection()){
            //设置事务的隔离级别
            connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
        }catch (SQLException e){
            e.printStackTrace();
        }
    }
}
